<template>
  <div>
    <div>
      <!-- v-model修饰符：
      .number:在同步给变量时使用 parseFloat 转成number类型
      .trim:去除首尾空白字符
       -->
      <span>年龄</span>
      <input type="text">
    </div>
    <div>
      <span>人生格言:</span>
      <input v-model="motto" type="text">
    </div>
    <div>
      <span>自我介绍</span>
      <textarea v-model="intro" name="" id="" cols="30" rows="10"></textarea>
    </div>
  </div>
</template>

<script>
export default {
  name: 'Homework2App',

  data() {
    return {
      age:'',
      motto:'',
    };
  },

  mounted() {
    
  },

  methods: {
    
  },
};
</script>

<style lang="scss" scoped>

</style>